const http = require('http');
const fs = require('fs');

const server = http.createServer((request, response) => {
  response.setHeader('content-type', 'text/html;charset=utf-8');
  // 获取文件对应路径
  let html = fs.readFileSync(__dirname + '/10_table.html');
  // console.log(html.toString());
  // end 支持输出buffer
  response.end(`${html}`);
})

server.listen(9000, () => {
  console.log('服务已启动...,访问地址：http://127.0.0.0:9000')
})

function changeColo(item) {
  console.log(item)
}